prototype of token exchange.