pass connection to events