fixed the build script