added tmpl and data dirs