added hook to parse template data