replaced PacketDispatcher by T4 template