moved client so that it runs on a read and write thread. no additional
code has been added.