improve LeakDetector