added a check for long packets for resultsets