adding some stringtemplate code