detect pipe