cache function name in a map