update.sh improved