refactor job generation to include snippets directly from the template