added hybrid jsonrpc v1 and v2 handler