fix missing unique leaderID
split templates into nodelist, nodecontainer and list itself