update client distro
switch to library version of pct function