debug caching