added debug stuff for menu structure