template configuration should be local variable