util funcs for getting vals out of tokens