read and write to same cfg file when getting access tokens