implement automatic fixing of broken caches