merged serialPort code