added analyses to scope and change the auth callback