write out the lists
small template changes