check file syntax first, only then check file system

check file syntax first, only then check file system