corrections for output streams