minor tweaks to pluginmanager loading/unloaindg process