added little bit of handshake algorithm in Server