stateful modules and template graph

have fun