adding a little bit of debugging for cache trimming