support event object api for #312