do more magic in update.sh