updated upload script.