added support for named menus