added USE_LEAK_DETECTIVE option