Four ways to ensure a secure transition to renewable energy