integrate with templates