fixes cache hit with auto-discovery