change to use a plugin to get the events.