pass connection to events
Merge pull request #9 from Tschebel/master

Pass connection to events