better error logging on packet types