addappointment throws ex