public void parseConfig() {
		XMLInOut xmlInOut = new XMLInOut(t);
		String fileNameTest= t.configFilePath;//t.configDirectoryPath+"config.xml";
		File f=new File(fileNameTest);
		if (!f.exists()) {t.showMessage("file doesnt exist :"+t.fileName);return;} 
		try {
			XMLElement xConfig= xmlInOut.loadElementFrom(fileNameTest);
			for (int  i=0;i<xConfig.countChildren();i++) {
				XMLElement item =xConfig.getChild(i);
				if (item.getElement().equals("hosts")) {
					int newOcServerPorts[]= new int[item.countChildren()] ;
					String newOscServerHost[]= new String[item.countChildren()];
					int newOscServerRcPorts[]= new int[item.countChildren()] ;
					
					for (int  j=0;j<item.countChildren();j++) {
						XMLElement host =item.getChild(j);
						newOcServerPorts[j]= Integer.parseInt(host.getAttribute("sndPort")) ;
						newOscServerHost[j]= host.getAttribute("addr");
						newOscServerRcPorts[j]= Integer.parseInt(host.getAttribute("rcvPort")) ;
						System.out.println("host:"+newOscServerHost[j]+" -snd:"+newOcServerPorts[j]+" -rcv:"+newOscServerRcPorts[j]);
					}
					t.oscServerPorts= newOcServerPorts;
					t.oscServerHost= newOscServerHost;
					t.oscServerRcPorts= newOscServerRcPorts;
					
				}
				if (item.getElement().equals("midi")) {
					String newmidiDevices[]=new String[item.countChildren()];
					
					for (int  j=0;j<item.countChildren();j++) {
						XMLElement midi = item.getChild(j);
						newmidiDevices[j]=midi.getAttribute("id");
						System.out.println("midi device:"+newmidiDevices[j]);
					}
					t.midiDeviceNames=newmidiDevices;
				}
				if (item.getElement().equals("classpath")) {
					t.additionalClassPath=item.getAttribute("path");
				}
				if (item.getElement().equals("datapath")) {
					t.dataFilePath=item.getAttribute("path");
				}
			}
		} catch (InvalidDocumentException e) {
			t.showMessage("Couldnt load config.");
		}
	}