changed the upload script