minor changes to support log save and restore