add stuff to put average coefficient and allow specifying coef col in filter