beginnings of returning errors during tokenization