added more debug info to advanceToken()