made the auth call more general