improved transactions manager for log restoration