auto readonly mode added