changing env detection