add protocol option to support https