Path merge hackery