added auto restarts