remove needless readFile function
refactor templates