segment working, oauth2 token exchange cleanup for config file