added rescue so the app won't crash when the token expires