working on handshake between SS and GS