tweak debug logging