adding debug message to hopefully fix the problem
adding some logging for production debugging