become more robust against bad rpc providers