minor logging cleaning