rest to serial