moved overall logging to cache