profiling code

fixes exchange_token method

Removed print