move packet to utils