add two vars to the templates slspath and tplpath