After being on line for more then half a century, the City of Keokuk is having to spend millions of dollars to upgrade their wastewater treatment plant along the riverfront.