vire template restructuring