tweaked build script