bug: on close writes to RO files