some mods to the build script