change plugin config to plugin.ini
emit events in scheduler