deploying templates