migrate from LOG to DebugMessage