added template vars to json