explicitly checking for file format