some clarifications regarding check_needsrestart