added simple client
support HTTPS negotiation in client