added Datagram validation