add FileUtil class
add template processing