correct handling for average value
increased refreshrate from 1 to 30 seconds