template data serializer and template data