new logging to find the problem