updated switch statement in client.cpp