Iteration

add support for iterative template creation