first version of templating the list. should fix all infinite loop issues