make refs relative