moving Token and TOKEN_TYPE to a separate file of its own