work on merging paths (still not close)