added event data and minified lib