add restart logic
0.3.0