remapping id, folder, tree