fix reference paths