basic templating and file writing works