fixing restart sequence bug + log ordering