todo: generate template files and initialize them correctly.