added ability to read ips from file