extend baudrate from int to long
because 38400 baud could be bigger than INT_MAX