after it load all templates, it should set the template path to be used later.