goto nextpkt only if there is a nextrecord