working on wire protocol.