fixed the edits to adapt to the new logging model