added averages support
added averages support