fixed cache dir issues