get_client_mode in clients instead of hard-coded mode value
added forgotten header file