menu and menuitem scope controlled. menus method can be passed in an array of menus, so they can be stored and modified as static data (for plugins)