closed #154 - implemented cacheDir option