minor fixes to cache