setconsole and setlevel added