partially finish the build script