fixed serialport/termial version problem