Using corex to fetch reg via fileref