flushing files