get rid of tempalte dir