update build script so that it works