reorders operations a bit to avoid the file not being flushed to disk before being used;