call ffifunctions in core code