fixing console detection