handlePluginSetup