ave->avgs, make avgs optional and regenerate if not there