added loop to add all app server ip to config