handling bad file read