the configuration thing could have to do with the fact that the root of the menu node tree is a class Menu, while all children need to be of class MenuNode