almost done with ip script