how pipe treader works