replace gobrpc with jsonrpc encoding