added analysis/template switch to select files