looping software packages on the template