pass token string for checks

get and unpack token in one operation