avoiding reference error when chrome is not available.