progress on better/cleaner menu tree generator