added a logger to help with debugging cache issues