changed code in SetUpClient class to fit with the new structure of the
server.