change setConsole to private