do not loop dead on insufficient file size.

throw an exception.