converted localNodes to a map, making a lot of progress on boundary exchange