private Message dispatch(Message m) {
		Message ret = null;
		String method = m.getContent();
		switch (method) {
		case "distribute":
			// get and create distributed from another node
			DFSMessage msg = (DFSMessage) m;
			dfs.createFile(msg.getFile());
			ret = new Message("ACK");
			break;
		case "partition":
			// get and save the partition file from another node
			PartitionMessage pm = (PartitionMessage) m;
			dfs.addPartition(pm.getPartition());
			ret = new Message("ACK");
			break;
		default:
			break;
		}
		return ret;
	}