modify upgrade.sh