improve leak detection