extension code to encapsulate jag exist testing
removed TestJags to encapsulate jag existence testing