first commit for the restore process with hierarchy