step 5 with https option