rebuild final data files for uploading