fix ref file paths