fixing ffi