added cache, log directory