use fork to fix relative $ref