flush file asynch fix