refactor:reduce packetio