update for uses last_appointment instead of appointment_today
debug retry behavior