replace NSURLConnection with NSURLSession calls