added relative_path to templates