check file type for import