adding ip discover, more logging