rename ScanStruct to ScanStructByIndex and ScanStruct2 to ScanStructByName