changed upgrade.sh