updated master build script