selected and currentPaths caching