serial input buffering bug averted