Revert pluginmanager code