added templates_dir