sync with cffi