made update_data_files function multiprocessed