add max failures to show in UI