extend work on attRef to cover arbitrary case