added static and template dirs