massive bug in log processing