updates for nscale compiler