leak detection control