updated error messages
ssl works for one request
added TLS support