minor changes to upload script