tweak scanning for token