#154: error handling $template_to_use