actually process the menu argument