added thresholdcount in config