sockets and jsonrpc working