Added eventbus api for plugins