adding debugging for connection