fixed issue with inserts - new problem arising between 25k and 50k lines, stops processing.