s/state/writer/g