improved setupAuth()