fixed template to handle new list get_doc format