added options for programmatic configuration of templating