small cleanup for ip file