public ClientCliImpl(Config config, Shell shell) {
		//System.out.println("Starting client");
		this.config = config;
		this.shell = shell;
		readConfig();
		readMCConfig();
		this.shell.register(this);
		shellThread = new Thread(this.shell);
		shellThread.start();
		try {
			UnicastRemoteObject.exportObject(this, 0);
		} catch (RemoteException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
	}