add thin wrapper of token and scanner.