add DEBUG conditional compilation