remove ffi dependency