experimentally implemented directry tree cache
Bugfix commit