added templatesPath to the config