Enhancing sustainability and resilience through retrofitting