rename type in regions to region_type. customize mercury save and serialization