improvements to mouse debug mode