waiting for rpc