pass config and service templates as parameters