build.sh takes endpoint as argument