first implementation of threaded windows client