initial attempt at making template configurable.