added configuring to use https