restore gains a dry.run argument