updated sample client