hooks to debug cache