add cache for files