adds all needed methods to Token.java