support serial input