adapt build script