fixed sconsole function