initialize with template files