jsonrpcs: updated to the new mod interface