added helpful IP address checks