trying to refactor out userinfocontroller but unsuccessful