read local file and change some format