removed environment detection