break out _toke_to_code function
start on block token handling