added debugging to connection response