fixed upload-script