fixed connection parsing