types state on ContainerWriter instead of global; better names; go get on test