setting and querying of PIN thresholds