use hashavg if defined