consolidate auto-respawn into one goroutine
create Writer module