updated call to getClient()