add logging to diagnose distribute problem