Making renewable energy reliable and safe