public void doGet(HttpServletRequest req, HttpServletResponse resp) throws IOException {
		log.info("WANcostResummingServlet1h Got a GET...");
		
		caches.reload();
		
		link[][] linkArr = new link[caches.lSources.size()][caches.lDestinations.size()];

		for (int i = 0; i < caches.lSources.size(); i++)
			for (int j = 0; j < caches.lDestinations.size(); j++)
				linkArr[i][j] = new link();
		
		// load data younger than24 hours
		Date currTime = new Date();
		Date cutoffTime = new Date(currTime.getTime() -  24 * 3600l * 1000);
		
		Filter f = new Query.FilterPredicate("timestamp", FilterOperator.GREATER_THAN, cutoffTime);
		Query q = new Query("FAXcost12h").setFilter(f);
		
		List<Entity> lRes = datastore.prepare(q).asList(FetchOptions.Builder.withLimit(10000).chunkSize(3000));
		String res="results in last 24 h: "+ lRes.size()+"\n";
		log.warning("results in last 24h : "+ lRes.size());
		for (Entity result : lRes) {
			String s = (String) result.getProperty("source");
			String d = (String) result.getProperty("destination");
			int i = caches.lSources.indexOf(s);
			int j = caches.lDestinations.indexOf(d);
			if(i<0 || j<0) {
				log.warning(s+" "+d+" "+i+" "+j);
				continue; 
			}
			linkArr[i][j].measurements++;
			if (result.getProperty("rate")==null) 
				log.severe("rate is null"); 
			else
				linkArr[i][j].sum += ((Double)result.getProperty("rate")).floatValue();
		}

		log.info("putting new data");
		List<Entity> lIns =new ArrayList<Entity>();
		for (int i = 0; i < caches.lSources.size(); i++){
			for (int j = 0; j < caches.lDestinations.size(); j++){
				if (linkArr[i][j].getAvg()<0) continue;
				Entity result = new Entity("FAXcost24h");
				result.setProperty("timestamp", currTime);
				result.setProperty("source", caches.lSources.get(i));
				result.setProperty("destination", caches.lDestinations.get(j));
				result.setUnindexedProperty("rate", linkArr[i][j].getAvg());
				lIns.add(result);
			}
		}
		datastore.put(lIns);
		resp.getWriter().println(res);

	}