add readonly attribute management functions