refactoring, get method names for caching by '__method__' instead written manually