add restart option, fixes #2