change how to call rpc from async_call to call