reimplement api communication with plain NSURLConnection