modify the serial config