debugging of wrap mode for dot repotting