fix for larger files

Add extra permanent error and increased the percentage cutoff to help lager files