clean up file flag