added simple template processor