finalize build.sh