restore now also makes use of the path flag