add restart, fixed #346