started but unfinished work for json rpc client