change tmp file to cache dir