Non-interactive client, but network com seems OK
work in progress
attempt to handle events and network in one thread
not so bad so far