enforcing readonly mode