pipes refactorings