add optional connection debugging