move logging code to unpacker methods