add guard around webdriver extension