access final val after read loop. fixes #1