more optimization of the upload process