a new phase which finishes template synthesis

for now this is the cleanest solution