revise the build script