change http to https during setup phase