fixes #6: correctly use getTokenSequence instead getText