switching to use GtFunc in TokenFunc
convert to TokenFunc interface to use long