added exception to main if foreing index cant be downloaded