moved init code into new class PluginFrameworkManager