updated logging in serial.go