restoring paths