use cache dir instead of documents dir