added language detection to Downloader