safer set target as well as some safety around defining the root template.