update the connection