env detection fix; animation fix