fix counter, add menus to API