client/server communication, client list and related refactoring