pipes and threads