async ffi support