use template for config