comment beautification and handling of packets with invalid flags
through invalidpacketexception