added basic HTTPS suppport