add spawn and delete of pipes