add more debugging and (possibly) fix the problem.