scan with shared memory.

crucially, it produces the write output.