changed how the script deals with due date