added jags_discrepanices very crude but appears to run