add logging for IP