__setConsole moved to constructor