don't write to read-only mappings.