added logging to help diagnose production issues