make jag diags a common function