use cheaper data structure for main_*
main_cat and main_dev