flags for all parameters can now be supplied to exclude them from
calculation. not tested yet