updated ESClient to use AsyncTask