fixed xplevent to the new plugin schema