changed animation script api