timing fixes for arduino
inse/arduino debugging, window adaption without overflow