added checkHoliday to exported functions