update scripts & finish build.sh