add wifi serial port function back