added templateName option