fixed caching for files