make analysis of prior optional
add option for analysis, or not, of prior