update client-functions.sh