add advanceUpload() to upload handling