add selectOnly option to ref