volatile on buffered writer