make getMenu work with nesting and dot notation