template integration