add struct average. add cache for board.