small changes on pluginmanager