better yet, join each path segment separately