client implementation, client log unfinished.