remove handshake, fix write later