implement file format designation

file extension is simply ignored.