attempt to fix logdump loop issue