utils: add helper functions to get names by values