scripts for the conversion of thresholds