added SSL support/use_https option