added automatic creation of thresholds for new facilities