improve JSONRPC compatibility