1st attempt correct multi ip issue; added logging