fixed up build script