fix for console detection