added template_dir to settings