Use lists of ips instead of singular ips, various other fixes