kaleidoscope: added gettoke function.