new connection implementation