client - hand shake