support $ref on items as well