fix for plugin factory