fail earlier on bad files