changed mapping for appointment to client. added yet more logging