something wrong with file detection