main: memory ops now get region data instead of region structures as parameters.