also check if console.log exists