flush output streams