add basics for cache dir support