format animations and remove old lib syntax