flushing stdout for flow -r