templatize job definition