cache and navigate directory paths