updated envManager for more browsers