Debug: what is going on in the consumer loop?