got most of the build script working