modify serial communication