more fixes for plugin manager, load/unload plugins without restart