fix dbg(), add explicit initialization