initial implementation of animation pipeline.

still need to test it out