use protocol to make jsonrpc responses