Functions and failures: how to manage technological promises for societal challenges