refinements in log handling