updating file caching code.