debug version with memory leak detection on