working on ip logging