add and del pipe