Investing in resilient communities