getting the templating structure ready