properly handle output buffers