implemented merge template into configuration