actually restore template