try to fix CPU mis-behaviour when under control of serial monitor.
fix bad line triggering (at least in simulation).