public static void main(String[] args) {
		String kiName = "";
		String host = "";
		KI ki = null;
		if (args.length == 2) {
			ki = getKIByName(args[0]);
			kiName = args[1];
			host = "192.168.178.115";
		} else if (args.length == 3) {
			ki = getKIByName(args[0]);
			kiName = args[1];
			host = args[2];
		} else {
			ki = new TomtomKI();
			kiName = "tt1940";
			host = "192.168.178.115";
		}
		
		if (ki != null && !kiName.equals("") && !host.equals("")) {
			System.out.println("connecting to " + host + " with KI " + kiName);
			
			Viewer v = new Viewer();
			v.setVisible(true);
			for (;;) {
			try {
				World w = World.connect(kiName, false, host);
	
				if (w != null) {
					ki.connectTo(w);
					v.attachWorld(w);
					w.eventloop();
				}
			} catch (Exception ex) {
				ex.printStackTrace();
			}
			try { Thread.sleep(1000); } catch (InterruptedException ie) {};
			}
		} else {
			System.out.println("invalid arguments");
		}
	}