refactored for loginradius