don't mess with template_key if it isn't there