update dlist template to support multiple terms