before file cache submit