tidy up the upload process for bulk upload