handle bad file
print in table format