handle cases where no template is defined