simplify ffi