changed the customization scheme of the templating
create the output folder if necessary