adding cache dir and settings dir