enhance build.sh