log mode fixes