improving the upload config