chose to use HttpURLConnection for http connections