paths rewrite, part 1.