added dynmatic class loading for PacketType