add optional datagram publishing (for debug)