simplified the base class for tokens