updated some things, with checking IP address for self