wrapping stuff in DEBUG_ONLY