add support for templates
bump version
handle updateTemplate errors properly