added functionality for loading calendars.