some changes to build.sh