flush to disk