environment variable support, when using html deactivates activeX stuff