normalize log save/log restore