fix file caching