moved token instance variables to globals to reduce database hits