OPTIMIZING THE RECOVERY PATHWAY OF A NET ZERO ENERGY WASTEWATER