expand withRefs