relaunch the app on bad token. refactor the code.