change the event :connect to :accept
new examples, integration test and fixes