added min and max support to validate_thresholds