remove dependency on pipes