added token debuggging