support for event type
add test for event type