initialize array if its not already there

fix minor issue for public ip addresses