fixed the plugin system