revise to support the windows file.