adapted function getCalendarTool, FIX #7