add handshake and package, message parse