check for the correct file type on import