extra logging + begin/end in compression loop