add basic multiple pipe support