fixed template array looping. Service now starts