accept template dirs