made ip_generation script easier to run