check extension not a filename