refactor the path of wt