add restart endpoint