improve pluginService