adding exception handling around the http get