add template files to lib