discovery of endpoints bug fixed by setting caching to null.