change to relative paths for templates.