added getConsole and setConsole