MB-18
modify structure of is_valid_flavor api