separate the API from the server construction
Correct logic for one-server/two client case