add a readonly flag