change endpoint to www