public void initEngine() {
        try {
            Printer.print("Reading config: " + ENGINE_FOLDER_CONFIG);
            String config1String = readConfig(ENGINE_FOLDER_CONFIG, 1);
            int config1 = Integer.parseInt(config1String);
            engine = new File[config1];
            int stringId = 2;

            for (int i = 0; i < config1; i++) {
                engine[i] = new File(readConfig(ENGINE_FOLDER_CONFIG, stringId));
                stringId++;
            }
            Printer.print("Done: " + ENGINE_FOLDER_CONFIG);
            engineName=new String[engine.length];
            for (int i = 0; i < engine.length; i++) {
                engineName[i]=engine[i].getName();
            }

        } catch (NumberFormatException e) {
            Printer.print("Error with parse first string in conf " + ENGINE_FOLDER_CONFIG);
            Printer.print("Creating new defult " + ENGINE_FOLDER_CONFIG);
            writeConfig(ENGINE_FOLDER_CONFIG, ENGINE);
            initEngine();

        }

    }