advanced wastewater management