refactored calendar library out