accounting for escape chars and working on get next token