fixed params for ffi functions