added findFileType