renamed useLocalStorage in fetchStructure