dont crash on file with no extension