modified visitors to take a single nodePath param