more logging to track down bug