adding IP address detection