added mainConsole