	public static void cmd(String name, Object ...args) {
		if (name.equals("start")) {
			if (file != null) {
				file.close();
			}
			try {
				file = new PrintWriter(new FileWriter(String.format("%d.avy", fileIndex++)));
			} catch (IOException e) {
				return;
			}
			return;
		}
		StringBuffer sb = new StringBuffer(name);
		for (Object obj : args) {
			sb.append(' ');
			sb.append(gson.toJson(obj));
		}
		file.println(sb.toString());
	}

	public static void cmd(String name, Object ...args) {
		if (name.equals("start")) {
			if (file != null) {
				file.close();
			}
			try {
				file = new PrintWriter(new FileWriter(String.format("%d.avy", fileIndex++)));
			} catch (IOException e) {
				return;
			}
			return;
		}
		StringBuffer sb = new StringBuffer(name);
		sb.append("(");
		for (int i = 0; i < args.length; i++) {
			if (i > 0) {
				sb.append(", ");
			}
			sb.append(gson.toJson(args[i]));
		}
		sb.append(")");
		file.println(sb.toString());
	}
