adds a reference to the connection, so the send function can work