slightly smarter restart