added switch for baud rates