changed some thing to make update.sh possible