start moving ffi* to ffi