enhance error msg
print file name
sort file list