work on the template builder