output-to-stream