working piping from/to Streams::Duplex