added: HTTPS and getopts functionality