fix translate pathname bug.
reindent whole file