working on the json-rpc adapter