fix for stream output