need to add logging to loginAs