first pass of working client