fixed caching for name lookup