add template for SingleCompile