add threshold detector
fixes to pull graphite for stupid graphite TZ handling