working on ip script