Building a resilient financial system