client implementation of protocol version 0 finished