modified the build script