update internal ffi architecture