change to new PluginManager