WIP on $ref/$rep