adding patch to generate all prep/sample templates