trying to generalize the findValidNode issues so it's easier to think about
trying to generalize the findValidNode issues so it's easier to think about