frequent restart code and timestamp write