change endpoint to https