switch to JSONRPC