add viewonly option