make collect_time/threshold configurable