refs #239 added verification in write()