note to self, move nodeRules up out of if