make template functionable
add test-file