look up tokens correctly