swigged plugin factory