protect against non-existant files