added cache and log dirs