improved the build script