initialize template core