fixing json rpc with new router api