using list instead of a single string for ips