track file position during tokenization