udpated controllerclientcpp