set thresholds via environment variable