started client implementation. a bunch od junk toy code lying around