client compiles, still missing writer thread