         let subpath:String
         switch type
         {
-            case .event:subpath = path!.event
-            case .image:subpath = path!.image
-            case .route:subpath = path!.route
+            case .event:subpath = assetIndex.event
+            case .image:subpath = assetIndex.image
+            case .route:subpath = assetIndex.route
         }
         let server = "http://\(LIVE_SERVER.addr)/\(subpath)"
         return CameraAsset(id: id, name: name, url: "\(server)/\(name)",

        delegate?.model(command: command, data: response)
        print(response)
        
        if command == .fetchAssetPaths
        {
            ready = true
        }

                    }
                }
                response = msg
                self.assetIndex = AssetIndex(image: image, event: event, route: route)
                print(self.assetIndex)
            
            case .fetchRouteVideos:
                let msg = try _decoder.decode(AssetsMessage.self, from: bytes)
