modify to export CFFI-TYPE function