add support for connection debugging