first stab at region merging
wip