rewrote animation file parser