Scripts frontiers recover 2

Couldn't cleanly separate this fix from what has been done so far ... let's merge this for now. We should try to learn how to rebase soon ...