menubackend library submenus

Perhaps the only way is to write it out? every single one? sounds inefficient.
this must be useful for somebody?