implement debugToken() to address issue #52