fixed debugging for tokens