reworked medcalendar