make pluginhost a singleton