addtional check for input file extension