before add restart feature