detect environment hotfix