add tracking of average frame shift