local & network reader handled by a common reader
parallelization working
fixed shutdown for writer
refactor writer