renamed jags_analysis_internal as analysis_internal