revised message system; changed appointments from list to map