removed event host and added a few helpers in pluginhost