added api for eventsystem