more options added for threshold - threshold-gap, threshold-type, threshold1..4
some log removed