restructure: define modules that use animation module