pipes and semaphores