* rewrote the IP addresses swap with their host part (which should be the same on both sides)
* did lots of other minor changes (too much to remember)
* test runs seems promising
* now add some logging toa file