public String refresh(ArrayList<String> list1) throws TembooException, IOException, TwitterException{
		getCreds();
		 session = new TembooSession("phalax4", APP_KEY_NAME, APP_KEY_VALUE);
		
		HomeTimeline homeTimelineChoreo = new HomeTimeline(session);
		HomeTimelineInputSet homeTimelineInputs = homeTimelineChoreo.newInputSet();

		homeTimelineInputs.set_AccessToken(list1.get(0));
		homeTimelineInputs.set_AccessTokenSecret(list1.get(1));
		homeTimelineInputs.set_ConsumerSecret(CONSUMER_KEY_SECRET);
		homeTimelineInputs.set_ConsumerKey(CONSUMER_KEY);

		HomeTimelineResultSet homeTimelineResults = homeTimelineChoreo.execute(homeTimelineInputs);
		
		//System.out.println(homeTimelineResults.get_Response());

		
		 /*JsonElement jelement = new JsonParser().parse(homeTimelineResults.get_Response());
		    JsonObject  rootobj = jelement.getAsJsonObject();*/
		   
		 
		JsonParser jp = new JsonParser();
    	JsonElement root = jp.parse(homeTimelineResults.get_Response());
    	
    	JsonArray statuses = root.getAsJsonArray();
    	
		
    	//JsonArray statuses = rootobj.get("statuses").getAsJsonArray();
    	String thread = "";
    	
    	for(int i = 0; i < statuses.size(); i++) {
    		JsonObject status = statuses.get(i).getAsJsonObject();
    		
    		String text = status.get("text").getAsString();
    		String screen_name = status.get("user").getAsJsonObject().get("name").getAsString();
    		
    		JsonArray urls = status.get("entities").getAsJsonObject().get("urls").getAsJsonArray();
    		
    		au = urls.toString();
    		
    		var1 = au.indexOf(":")+1;
    		var2 = au.indexOf(":",var1)+1;
    		var3 = au.indexOf(":",var2)+2;
    		var4 = au.indexOf(",",var3)-1;
    		
    		if(au.charAt(var1)== ' '){
    			sub = " ";
    		}else if (!(var3 < 0 || var4 < 0)){
    			sub = au.substring(var3,var4);
    		}
    		else
    		{
    			sub = "";
    		}
    		
    		
    		thread += screen_name + "\n" + text+"\n"+sub +"\n\n";
    	}
		//new Reader().parse(result);

    	return thread;
	}