util: improved taxonomy getter