soapy: work on C api for factory