tweak debug frame and logging