minor changes to have_children_at_level (but it's not really used), fixed lookup (which obsoleted have_children_at_level :-)