hack for smarter debug traces