#9 fix seek and read