replace jsonrpc code with submodule