piped output stream wrapper