fix some issues with compiler optimizing away reads, but still issues
with coalesce_spacing getting killed for spacing = 2