a duplex stream for handling pipelines