added config option for thresholds. tweaking time!